for i in range(1, 10):
    for j in range(1, 10):
        x = "\t" if j < i else "\n"
        if i >= j:
            print(f'{j}*{i}={i*j}', end=x)
        else:
            break

# 完成的不错，不过内层循环可以从循环条件判断，使代码更简洁
